package model

type AgreementIdRes struct {
	Id string `json:"id"  dc:"协议表id"`
}

type AgreementIdReq struct {
	Id string `json:"id"  dc:"协议表id"    v:"required#协议ID必填"`
}

// AgreementInfoRes 协议详情
type AgreementInfoRes struct {
	Id            string `json:"id"  dc:"协议表id"    v:"required#协议ID必填"`
	AgreementType int    `json:"agreementType" dc:"1. 隐私协议 2 用户协议" v:"required|in:1,2#协议类型必填|协议类型只能填写1,2"`
	AgreementBody string `json:"agreementBody"  dc:"协议内容"`
}

// AddAgreementRes 添加协议详情
type AddAgreementRes struct {
	AgreementTypeReq
	AgreementBody string `json:"agreementBody"  dc:"协议内容"`
}

// AgreementListRes 协议列表
type AgreementListRes struct {
	List []*AgreementInfoRes `json:"list"  dc:"协议列表"`
	*PutPage
}

// SearchAgreementListReq 搜索订单列表的参数
type SearchAgreementListReq struct {
	AgreementType int `json:"agreementType" dc:"1. 隐私协议 2 用户协议" v:"in:1,2#协议类型只能填写1,2"`
	*Paging
}

// AgreementTypeReq 协议类型
type AgreementTypeReq struct {
	AgreementType int `json:"agreementType" dc:"1. 隐私协议 2 用户协议" v:"required|in:1,2#协议类型必填|协议类型只能填写1,2"`
}
